#ifndef MY_APP_RELEASE_H
#define MY_APP_RELEASE_H

#include "main.h"

enum ANGLE_SW_STATE
{
    ANGLE_SW_NONE,
    ANGLE_SW_OK
};

enum
{
    MOTOR_NORMAL,
    MOTOR_REVERSE
};

typedef struct {
    unsigned char running;
    unsigned char counter;
    unsigned int start_time;   
    unsigned char reverse_count;
    unsigned char set_value;
    unsigned char done_value;   
    unsigned char reverse_sw_count;         
} app_motor_mgr_t;

void my_app_release_init(void);
void my_app_release_task(void);

void irq_callback_angle_sw(void);
void app_release_set_value(unsigned char value);

unsigned char app_release_is_ok(void);

void app_overcur_handle(void);

#endif